package org.jmq.myblog.service;

import org.jmq.myblog.pojo.Article;
import org.jmq.myblog.pojo.MyPage;
import org.jmq.myblog.utils.ResponseResult;

import java.util.List;
import java.util.Map;

public interface ArticleService {
    ResponseResult<Map> search(MyPage page);
    ResponseResult<Map> getArticleList(MyPage page);
    ResponseResult<List> allArticle();
    ResponseResult addArticle(Article article);
    ResponseResult modifyArticle(Article article);
    ResponseResult deleteArticle(int id);
    ResponseResult recoveryArticle(int id);
}
